<div class="container">
  <%#= devise_error_messages! %>
  <div class="login-container">
    <div class="page-header text-left">
      <h1><small>Create an account</small></h1>
    </div>
    <%= form_for(resource, as: resource_name, url: registration_path(resource_name), class: "form-horizontal") do |f| %>

      <div class="form-group">
        <i class="fa fa-envelope-o"></i>
        <%= f.label :email, class: "control-label" %><br />
        <%= f.email_field :email, autofocus: true, class: "form-control" %>
      </div>

      <div class="form-group">
        <i class="fa fa-asterisk"></i>
        <%= f.label :password, class: "control-label" %>
        <% if @validatable %>
        <em>(<%= @minimum_password_length %> characters minimum)</em>
        <% end %><br />
        <%= f.password_field :password, autocomplete: "off", class: "form-control" %>
      </div>

      <div class="form-group">
      <i class="fa fa-asterisk"></i>
        <%= f.label :password_confirmation, class: "control-label" %><br />
        <%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
      </div>

      <div class="form-group">
        <%= f.submit "Sign up", class: "btn btn-warning" %>
      </div>
    <% end %>

    <%= render "devise/shared/links" %>
  </div>
</div>